<?php
//------------------------------------//
// iJobs - Job Listing Software       //
// Version: 1.0.0 Alpha 1             //
// Author: RIXWIL Software            //
// Website: http://www.rixwil.com     //
//------------------------------------//
// index.php - Core File              //
//------------------------------------//

ob_start();

// Lets Get Configured //
include "includes/config.php";

// Lets Load My Header //
include "templates/header.tpl";

$check=mysql_query("SELECT * FROM system WHERE SystemEnabled=1");
    if(mysql_num_rows($check) == 1)
{
// Lets Structure My Links //
switch($_GET['app']) { 
	case 'jobs':
		include('templates/jobs.tpl');
	break;
	case 'about':
		include('templates/about.tpl');
	break;
	case 'contacts':
		include('templates/contacts.tpl');
	break;
	case 'newjob':
		include ('templates/newjob.tpl');
	break;
	default:
		include('templates/index.tpl');
	break;
}
}
else
{
include "templates/skin_cp/offline.tpl";
}

// Now thats done, lets finish with a footer //
include "templates/footer.tpl";

ob_flush();

//---------------------------------------------//
// Just a little copyright notice              //
//=============================================//
// iJobs is free to download and use, we only  //
// ask for one thing, and thats to keep all    //
// copyright and powered by lines intact       //
//---------------------------------------------//
?>